package user

import (
	"github.com/gin-gonic/gin"
	"yak.admin/src/module/api/user/controller"
)

func Routers(group *gin.RouterGroup) {
	group.Any("user/info", controller.Info)
	group.POST("user/upload-avatar", controller.ProfileAvatar)
	group.POST("user/profile", controller.Profile)
	group.GET("user/messages", controller.Message)
	group.GET("reports/page-configs", controller.Configs)
	group.GET("reports", controller.Reports)
	group.GET("user/page-config", controller.PageConfig)
	group.POST("user/profile-nickname", controller.ProfileNickname)
	group.POST("user/profile-username", controller.ProfileUsername)
	group.POST("user/profile-sex", controller.ProfileSex)
	group.POST("user/profile-age", controller.ProfileAge)
	group.POST("user/profile-company", controller.ProfileCompany)
	group.POST("user/profile-job", controller.ProfileJob)
	group.POST("user/profile-job-rank", controller.ProfileJobRank)
	group.POST("user/profile-address", controller.ProfileAddress)
	group.POST("user/profile/update-password", controller.UpdatePassword)
	group.POST("user/discuss-submit", controller.DiscussSubmit)
	group.GET("user/discuss", controller.Discusses)
	group.POST("user/discuss/upload-annex", controller.UploadDiscussAnnex)
	group.GET("configs", controller.Configs)
}
